package com.example.adms.message.mapper;

import com.example.adms.leave.entity.Leave;
import com.example.adms.message.entity.Message;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hyt
 * @since 2023-04-24
 */
public interface MessageMapper extends BaseMapper<Message> {

    Integer selectUserRoleIdByUserId(String userId);

    Integer selectUnPassLeave();

    Integer selectUnPassBusinessTrip();

    Integer selectDepartIdByUserId(String userId);

    Integer leaderSelectUnPassLeave(Integer departId);

    Integer leaderSelectUnPassBusinessTrip(Integer departId);

    Integer selectMessageByUserId(String userId);
}
